<?php
/**
 * 	Bushido
 *
 * @category   Bushido
 * @package    Bushido
 * @copyright  Copyright (c) 2008-2009 Nathan Keyes
 * @author $Author: nkeyes $
 * @version    $Id: Role.php 18 2009-11-15 02:00:09Z nkeyes $
 */
 
class Bushido_DbTable_Role extends Bushido_Db_Table_Abstract
{
	const ADMIN = 1;
	
	protected $_name = 'bushido_role';	
	
	protected $_sequence = true;
	
	protected $_childMap = array
	(
		'Users' => array
		(
			'refTableClass' => 'Bushido_DbTable_UserRole',
			'cardinality' => Bushido_Db_Table_Abstract::ZERO_OR_MANY
		)
	);
	
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/Table/Bushido_Table_Abstract#getSearchableFields()
	 */
	public function getSearchableFields()
	{
	}
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/Db/Table/Bushido_Db_Table_Abstract#_setFieldDetails()
	 */
	protected function _setFieldDetails()
	{
		
	}
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/Table/Bushido_Table_Abstract#getDisplayValue()
	 */
	public static function getDisplayValue(Zend_Db_Table_Row_Abstract $row, $context = null)
	{
		return $row->name;
	}
}